<template>
	<div class="box"></div>
	<button @click="add">操作</button>
	<div class="box2" @click="add">测试2</div>
</template>
<script>
export default {
	data() {
		return {
			a: 1,
			b: 2
		}
	},
	computed: {
		c() {
			return this.a + this.b;
		}
	},
	methods: {
		add() {
			console.log(`helloworld`);
		}
	},
	mounted() {
		console.log(`helloworld`);
	}
}
</script>
<style lang="scss">
.box {
	width: 100px;
	height: 100px;
	border: 1px solid #000;
}

.box2 {
	width: 100px;
	height: 100px;
	border: 1px solid #000;
}
</style>